import React from "react"
import {useRoutes} from 'react-router-dom'
import RouterList from "./router"
import WidthRouter from "./components/HOC"
const App:React.FC=()=>{
  const Element=useRoutes(RouterList) 
  return (
    <div>
       {Element}
    </div>
  )
}

export default WidthRouter(App)
